import scrapy

class ProducerSpider(scrapy.Spider):
    name = "producer"

    async def start(self):
        yield scrapy.Request(url="https://quotes.toscrape.com/", callback=self.parse)

    def parse(self, response):
        items = response.xpath("//div[@class='quote']")
        for item in items:
            yield {
                "author": item.xpath(".//small[@class='author']/text()").get().strip(),
                "content": item.xpath(".//span[@class='text']/text()").get().strip()[1:-1],
                "tags": item.xpath(".//a[@class='tag']/text()").getall(),
            }

        next_url = response.xpath("//li[@class='next']/a/@href").get()
        if next_url:
            yield response.follow(url=next_url)